# This dockerfile is for docker war app.
# Version 1.0

# Base images.
FROM 192.168.18.99:5000/tomcat:8


# Author.
MAINTAINER zhanghailin <zhanghailin@wisdytech.cn>

# Add war.
ADD linkdcs.war /usr/local/tomcat/webapps/

# Define working directory.
#WORKDIR /usr/local/tomcat/bin/

# Define environment variables.
#ENV PATH /usr/local/tomcat/bin:$PATH

#Set timezone and create log dir
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  && echo 'Asia/Shanghai' >/etc/timezone \
  && mkdir -p /var/log/linkdcs-jw

#Create volume to save log and files
#VOLUME ['/var/log/linkdcs-jw','/usr/local/tomcat/webapps']

# Define default command.
CMD ["catalina.sh", "run"]

# Expose ports.
EXPOSE 8080
